<template>
  <div style="padding-top: 37px">
    <!-- <ncform
      :form-schema="formSchema"
      form-name="your-form-name"
      v-model="formSchema.value"
      @submit="submit()"
    ></ncform> -->
    <div style="text-align: center">
      <el-button @click="submit()">开始测试</el-button>
    </div>
  </div>
</template>

<script>
//import { mapState, mapGetters, mapActions } from "vuex";
import { mapActions } from "vuex";

export default {
  data() {
    return {};
  },
  props: ["queryType", "company"],
  methods: {
    ...mapActions(["getQueryInfo"]),
    submit() {
      // let sendParams = {
      //   queryType: this.queryType
      // };
      // let json_data ={};
      // console.log("videoTanBegin_json_data", json_data);
      // let params = {
      //   sendParams,
      //   json_data
      // };
      // console.log("videoTanBegin_params", params);

      // let videoType = this.videoType === "1 (高码流)" ? "1" : "0";
      // console.log("this.queryType", this.queryType);
      // console.log("formSchema.value:", this.formSchema.value)
      let sendParams = {
        queryType: this.queryType,
        username: this.company,
      };
      this.getQueryInfo(sendParams);
    },
  },
};
</script>
